package com.goldze.mvvmhabit.entity;

import java.io.Serializable;

/**
 * Created by L
 * 2018/9/1
 */
public class RspBean<T> implements Serializable {


    /**
     * code : 0
     * msg : 操作成功
     * token : TWkNc1Yh9YCKGIfWzMotQQ==
     * T : 实际数据
     */

    private int code;
    private String msg;
    private String token;
    private T data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "RspBean{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", token='" + token + '\'' +
                ", data=" + data +
                '}';
    }
}
